﻿using System;
using System.Collections.Generic;
using System.Configuration;
using Citi.GocAttributes.Domain;

namespace Citi.GocAttributes.SchedulerUI
{
    public class ImportDsmt : ImportFeed, RoutineBase.IExecutableRoutine
    {
        protected override string FileName { get { return ConfigurationManager.AppSettings["DsmtFileName"]; } }

        protected override void Import(RoutineBase.ICurrentAction currentAction, DateTime referenceDate, string filePath)
        {
            Goc.ImportGocs(filePath, referenceDate);
        }

        public void Rollback(ref RoutineBase.ICurrentAction currentAction, Dictionary<string, object> parameters)
        {
            base.Rollback(ref currentAction, parameters);
        }

        public void Start(DateTime scheduledDate, ref RoutineBase.ICurrentAction currentAction, Dictionary<string, object> parameters)
        {
            base.Start(scheduledDate, ref currentAction, parameters);
        }

        public void Stop(ref RoutineBase.ICurrentAction currentAction, Dictionary<string, object> parameters)
        {
            base.Stop(ref currentAction, parameters);   
        }
    }
}
